
{[include file="zs/plan/_view.tpl"]}

<table style="margin-top: 10px">
	<tr>
		<th width="40">序号</th>
		<th width="100">日期</th>
		<th>备注</th>
		<th>数量</th>
	</tr>
	{[foreach name=outer key=key item=item from=$result.log]} 
	{[assign var="no" value="`$key+1`"]} 
	{[assign var="total" value="`$total+$item.amount`"]}
	<tr align="center" onMouseOver="this.style.backgroundColor='#D2E4FC'" onMouseOut="this.style.backgroundColor=''">
		<td>{[$no]}</td>
		<td>{[$item.date]}</td>
		<td>{[$item.name]}</td>
		<td>{[$item.amount]}</td>
	</tr>
	{[/foreach]}
	<tr>
		<td colspan="2"></td>
		<td align="right">合计：</td>
		<td align="center">{[$total]}</td>
	</tr>
</table>
